﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CSharp.Libs.Misc
{
    public class BankDataItem
    {
        #region properties
        public string DateString { get; set; }
        public DateTime Date
        {
            get
            {
                if (!string.IsNullOrEmpty(DateString))
                {
                    DateTime dtDate;
                    if (DateTime.TryParse(DateString, out dtDate))
                    {
                        return dtDate;
                    }
                }

                return DateTime.MinValue;
            }
        }
        public string Description { get; set; }
        public decimal Sales { get; set; }
        #endregion
    }
}
